package com.camel.studyApp.event;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

@Component
public class MyEventListener {

    private static final Logger log = LoggerFactory.getLogger(MyEventListener.class);

    @EventListener
    public void listener(MyEvent event) {
        log.info("{}", event.getSource());
    }
}
